{% extends "base_blank.volt" %}
    {% block pageHeader %}

    <style>
        .checkbox-inline+.checkbox-inline{ margin-right: 10px;margin-left: 0;}
    </style>

    {% endblock %}

        {% block pageFooter%}
		{{ javascript_include("/assets/manage/js/user/setexpertinfo.js", false) }}
        {% endblock %}

        {% block content %}
<div class="container-fluid" id="content_box_blank">
    <div class="row">
        <div class="col-xs-12">
            <form id="form_update" class="form-horizontal" durl="{{url.get('user/list?type=1')}}" role="form" method="post" action="" target="ifr_send_file" enctype="multipart/form-data">
			<input type="hidden" name="callback" value="parent.setFormResult">
            <div class="row form-group">
                <label class="col-xs-2 control-label">从业经验</label>
                <div class="col-xs-6">
                    <div class="input-group">
                        <input type="number" class="form-control" name="experience" data-rule="required;digits;" data-target="#err_year">
                        <div class="input-group-addon">年</div>
                    </div>
                    <div class="" id="err_year"></div>
                </div>
            </div>
            <div class="row form-group">
                <label class="col-xs-2 control-label">专家头衔</label>
                <div class="col-xs-6">
                	<input type="hidden" name="userId" value="{{ userId }}">
                    <input type="text" class="form-control" name="experttitle" data-rule="required;length[~5]" >
                </div>
            </div>
                <div class="row form-group">
                    <label class="col-xs-2 control-label">粉丝数</label>
                    <div class="col-xs-6">
                        <input type="text" class="form-control" name="fans" value="{{ count }}" >
                    </div>
                </div>
        <div class="row form-group">
            <label class="col-xs-2 control-label">擅长领域</label>
            <div class="col-xs-6">
            {% for r in tagList%}
                <label class="checkbox-inline">
                    <input type="checkbox" id="inlineCheckbox1" data-rule="checked;checked[~10]" name="field[]" value="{{ r.tag_title }}"> {{ r.tag_title }}
                </label>
            {% endfor %}
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-offset-2 col-xs-10">
                <button type="submit" class="btn btn-primary"><i class="fa fa-floppy-o fa-lg"></i> 确 认</button>
            </div>
        </div>
    </form>
</div>
        </div>
        </div>
        {% endblock %}